<?php

namespace App\Console\Commands\Mybank\Tools;

use App\Kuafu\Mybank\Service\MybankService;
use App\Kuafu\Order\Model\OrderCouponSplitModel;
use App\Kuafu\Order\Model\OrderDetailSplitModel;
use App\Kuafu\Order\Model\OrderDiscountSplitModel;
use App\Kuafu\Order\Model\OrderExternalSplitModel;
use App\Kuafu\Order\Model\OrderPayUnionSplitModel;
use App\Kuafu\Order\Model\OrderSplitModel;
use App\Kuafu\Pay\Model\PayStreamModel;
use App\Kuafu\Shop\Model\Shop;
use App\Kuafu\WaiMai\Model\WaiMaiOrderDetailModel;
use App\Kuafu\WaiMai\Model\WaiMaiOrderIdShopIdMappingModel;
use App\Kuafu\WaiMai\Model\WaiMaiOrderModel;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;

class QueryBatchStatusCommand extends Command
{
    protected $signature = 'mybank:tools:query-batch-status';

    protected $description = '批次状态查询';

    public function handle()
    {
        $batchNo         = '20230904_05';
        $batchInstanceId = 'BATCH_CREATE_ORDER_STMT_AVAILABLE_FREEZE202211000000000001981000020230904_05';

        $batchQuery = MybankService::batchQuery($batchNo, $batchInstanceId);

        dd($batchQuery);
    }
}
